//
//  YJCareDoctorsViewCell.m
//  QuickCure1
//
//  Created by 陶永久 on 2016/10/31.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "YJCareDoctorsViewCell.h"
#import "YJDoctorsIfonModel.h"
@interface YJCareDoctorsViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *doctor_portrait;
@property (weak, nonatomic) IBOutlet UILabel *doctor_name;
@property (weak, nonatomic) IBOutlet UILabel *doctor_title_name;
@property (weak, nonatomic) IBOutlet UIButton *flower;

@property (weak, nonatomic) IBOutlet UIButton *operation_count;
@property (weak, nonatomic) IBOutlet UIButton *banner;

@end

@implementation YJCareDoctorsViewCell

 -(void)setModel:(YJDoctorsIfonModel *)model
{
    _model = model;
    
    [self.doctor_portrait sd_setImageWithURL:[NSURL URLWithString:model.doctor_portrait]];
    
    self.doctor_portrait.layer.cornerRadius = 30;
    self.doctor_portrait.layer.masksToBounds = YES;
    
    self.doctor_title_name.text = model.doctor_title_name;
    
    self.doctor_name.text = model.doctor_name;
    
    [self.flower setTitle:model.flower.description forState:UIControlStateNormal];
    
    [self.operation_count setTitle:model.operation_count.description forState:UIControlStateNormal];
    
    [self.banner setTitle:model.banner.description forState:UIControlStateNormal];
}
@end


 
